<?php get_header(); ?>
<div id="content" class="content">
		<div id="innerContent">
		<?php if (have_posts()) : ?>
		
		<div class="textbox">
			<div class="textbox_header"></div>
			<div class="textbox_inner">
			    <div class="textbox-title">
			        <h1><?php _e('Search Results', 'kubrick'); ?></h1>
			    </div>
			</div>
			<div class="textbox_footer"></div>
		</div>
		<div class="textbox">
					<div class="textbox_header"></div>
					<div class="textbox_inner">
		                <div class="textbox-title">

			<?php while (have_posts()) : the_post(); ?>
				   <h1 class="postlist" id="post-<?php the_ID(); ?>">
										<span>
										<?php comments_popup_link(__('看法', 'kubrick'), __('1个看法', 'kubrick'), __('%个看法', 'kubrick'), '', __('Comments Closed', 'kubrick') ); ?>
										<?php the_time(__('F jS, Y', 'kubrick')) ?>
									</span>
									<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__('Permanent Link to %s', 'kubrick'), the_title_attribute('echo=0')); ?>"><?php the_title(); ?></a>
									</h1>
			<?php endwhile; ?>
			</div>
					</div>
					<div class="textbox_footer"></div>
				</div>
			<div class="article-bottom" style="display: block">
				<div class="pages">
					<!--分页-->
						<span class="pagebar-selections">
						<div id="pagenavi">
							<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
						</div>
						</span>
				</div>
			</div>
		<?php else : ?>
		<div class="textbox">
	<div class="textbox_header"></div>
	<div class="textbox_inner">
            <div class="textbox-title">
                <h1><?php _e('Not Found', 'kubrick'); ?></h1>
            </div>
            <div class="textbox-content">
            	<div id="archives">
					<p class="center"><?php _e('Sorry, but you are looking for something that isn&#8217;t here.', 'kubrick'); ?></p>
			<?php get_search_form(); ?>
            	</div>
			</div>
		</div>
				<div class="textbox_footer"></div>
			</div>
		<?php endif; ?>
		</div>
	</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>
